package com.team622.shop.user.service.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 密码编码配置类
 *
 * @author team622
 * @since 2025-07-02
 */
@Configuration
public class PasswordConfig {
    /**
     * 配置BCrypt密码编码器
     *
     * @return BCryptPasswordEncoder实例
     */
    @Bean
    public BCryptPasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
